<%@ page import="com.jspsmart.upload.SmartUpload" %>
<%@ page import="com.jspsmart.upload.Request" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/3
  Time: 20:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    SmartUpload sm = new SmartUpload();
    sm.initialize(pageContext);
    sm.setCharset("UTF-8");
    sm.upload();
    Request smRe = sm.getRequest();
    String title = smRe.getParameter("title");
    sm.save("kk");
    out.print(sm.getFiles().getFile(0).getFileName());

%>

</body>
</html>
